package com.livegoods.controller;

import com.livegoods.LivegoodsMessage;
import com.livegoods.pojo.LivegoodsResult;
import com.livegoods.service.BuyactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BuyactionController {

    @Autowired
    private BuyactionService buyactionService;

    @GetMapping("/buyaction")
    public LivegoodsResult buyaction(String id, String user){
        return buyactionService.buyaction(id,user);
    }

}
